#ifndef MYDEVICEMODEL_H
#define MYDEVICEMODEL_H

#include "mainwindow.h"

class MyDeviceModel : public QAbstractTableModel
{
	Q_OBJECT
public:
	MyDeviceModel(QList<DeviceInformation*> *devList, QObject *parent = 0);
	QVariant data(const QModelIndex &index, int role) const;
	QVariant headerData(int section, Qt::Orientation orientation,int role) const;
	int rowCount(const QModelIndex &parent) const;
	int columnCount(const QModelIndex &parent) const;

	void Update();

	QList<DeviceInformation*> *deviceList;
};

#endif // MYDEVICEMODEL_H
